package com.mega.ebcs.integration.processor;

import org.apache.camel.Exchange;
import org.apache.camel.Processor;

public class FileNameProcessor implements Processor {
	public void process(Exchange exchange) throws Exception {		
		exchange.getIn().setHeader(Exchange.FILE_NAME_PRODUCED, exchange.getIn().getMessageId().replace("-", "_").replace(":", "_"));
		exchange.getIn().setHeader(Exchange.FILE_NAME, exchange.getIn().getMessageId().replace("-", "_").replace(":", "_"));		
	}
}
